﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core.Profile;
using NUnit.Framework;
using COFE.Core.Lister;
using COFE.Core.Utils;

namespace COFE.Data.DBLink
{
    public class DBLinkFactory : IFactory<IDirectoryLister>
    {
        public DBLinkFactory(string factoryKey)
        {
            Assert.IsNotNullOrEmpty(factoryKey);
            FactoryKey = factoryKey;
        }

        public string FactoryKey { get; private set; }

        public IDirectoryLister Construct(string id, string paramString)
        {
            return new DBLinkDirectoryLister(this, id);

        }

        public string Recycle(IDirectoryLister product)
        {
            return "";
        }
    }
}
